<p id="notice"></p>
<%= render :template => 'profile/menu' %>
<div class="main-content">
  <h3 align="center">Thông tin tài khoản</h3>
  <%= form_for(@user, :url => {:action =>'update'}) do |f|%>
      <table width="650px" style="line-height:40px">
        <tr>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td>User name</td>
          <td><%= f.text_field :user_name%></td>
          <td rowspan="3"><% if (@user.img == "") %><%= image_tag(asset_path "default.jpg",:size=> "40x40", :alt => "default") %><% else %><%= image_tag(asset_path @user.img,:size=> "40x40", :alt => "default") %><% end%>
            <br/>
            URL <%= f.text_field :img%>
          </td>
        </tr>
        <tr>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td width="150px">Display name</td>
          <td><%= f.text_field :display_name%></td>
          <td></td>
        </tr>
        <tr>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td>Email</td>
          <td><%= f.email_field :email, :readonly => true%></td>
          <td></td>
        </tr>
        <tr>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td>Sex</td>
          <td><%= f.radio_button :sex, 'male', :checked => true %> Male
            <%= f.radio_button :sex, 'female' %> Female</td>
          <td></td>
        </tr>
        <tr>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td>Birthday</td>
          <td><%= f.date_select :birth_day ,:start_year=>Time.now.year-100,:end_year=>Time.now.year%></td>
        </tr>
        <tr>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td>Phone</td>
          <td><%= f.number_field :phone_number%></td>
        </tr>
        <tr>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td></td>

        </tr>
        <tr>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td></td>
          <td><%= f.submit "Update" %></td>
        </tr>

      </table>
  <% end%>
</div>

</div>
